{extend name="../../admin/view/main"}

{block name="button"}

<!--{if auth("add")}-->
<button class='layui-btn layui-btn-sm layui-btn-primary' data-modal='{:url("add")}'>添加车型</button>
<!--{/if}-->

<!--{if auth("config")}-->
<button class='layui-btn layui-btn-sm layui-btn-primary' data-modal='{:url("config")}'>默认配置</button>
<!--{/if}-->

{/block}

{block name='content'}
<div class="think-box-shadow">
    {include file='record/vehicle_type/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
            </th>
<!--            <th class='list-table-sort-td'>-->
<!--                <button class="layui-btn layui-btn-xs" data-reload type="button">刷 新</button>-->
<!--            </th>-->
            <th class="text-left nowrap">车型名称</th>
            <th class="text-left nowrap">匹配词</th>
            <!--{if session('user.username') eq 'LiuLiang'}-->
            <th class="text-left nowrap">平台整车结算费用（元）</th>
            <th class="text-left nowrap">平台双面结算费用（元）</th>
            <!--{/if}-->
            <th class="text-left nowrap">师傅整车结算费用（元）</th>
            <th class="text-left nowrap">师傅双面结算费用（元）</th>
            <th class="text-left nowrap">操作</th>
            <th class="text-left nowrap"></th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class='list-table-check-td think-checkbox'>
                <label><input class="list-check-box" type='checkbox' value='{$vo.id}'></label>
            </td>
<!--            <td class='list-table-sort-td'>-->
<!--                <label><input class="list-sort-input" data-action-blur="{:request()->url()}" data-loading="false" data-value="id#{$vo.id};action#sort;sort#{value}" value="{$vo.sort}"></label>-->
<!--            </td>-->
            <td class="text-left nowrap">{$vo.name|default=''}</td>
            <td class="text-left nowrap">{$vo.match_text|default=''}</td>
            <!--{if session('user.username') eq 'LiuLiang'}-->
            <td class="text-left nowrap">{$vo.platform_price|default=''}</td>
            <td class="text-left nowrap">{$vo.platform_double_price|default=''}</td>
            <!--{/if}-->
            <td class="text-left nowrap">{$vo.painter_price|default=''}</td>
            <td class="text-left nowrap">{$vo.painter_double_price|default=''}</td>
            <td class='text-left nowrap'>

                <!--{if auth("edit")}-->
                <a class="layui-btn layui-btn-sm" data-dbclick data-modal="{:url('edit')}?id={$vo.id}" data-title="编辑系统车型">编 辑</a>
                <!--{/if}-->

                <!--{if auth("remove")}-->
                <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="{:url('remove')}" data-confirm="确定要删除该车型吗？" data-value="id#{$vo.id}">删 除</a>
                <!--{/if}-->

            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}